package org.tissou.server.Services;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import org.tissou.client.Services.EnsembleMonnaies;
import org.tissou.client.Services.MonnaieInfos;
import static org.tissou.server.Utils.Variables_Globales.ListeMonnaies;
import org.tissou.client.Services.ProprietaireInfos;

import java.util.List;
import java.util.ArrayList;

import org.tissou.server.Base.Monnaie;

/**
 * Created by IntelliJ IDEA.
 * User: Claire
 * Date: 17-May-2009
 * Time: 10:53:07
 * To change this template use File | Settings | File Templates.
 */
public class EnsembleMonnaiesImpl extends RemoteServiceServlet implements EnsembleMonnaies {


  public List<MonnaieInfos> donnerListeMonnaies() {
    List<MonnaieInfos> liste = new ArrayList<MonnaieInfos>();
    for (Monnaie p : ListeMonnaies.getListe()){
      liste.add(p.getInfos());
    }
    return liste;
  }
}